﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Ext.Master" AutoEventWireup="true"
    CodeBehind="Basic.aspx.cs" Inherits="MVCnExt.Views.Form.Basic" %>

<asp:Content ID="aboutContent" ContentPlaceHolderID="MainContent" runat="server">    
    <mvc:ExtWindow ID="extWindow" title="Forms Example" width="400" runat="server">
        <items>
            <mvc:ExtFormPanel border="false" bodyStyle="padding:10px;" ID="frmPnl" runat="server">
                <items>
                    <mvc:ExtTextField ID="textField" runat="server" fieldLabel="Text field" name="textField" value="Text value"></mvc:ExtTextField>
                    <mvc:ExtTextField ID="emailField" runat="server" fieldLabel="Email" name="emailField" vtype="email"></mvc:ExtTextField>
                    <mvc:ExtRadio ID="radio1" runat="server" name="radio1" fieldLabel="Radio 2"></mvc:ExtRadio>
                    <mvc:ExtRadio ID="ExtRadio1" runat="server" name="radio1" fieldLabel="Radio 2"></mvc:ExtRadio>
                    <mvc:ExtComboBox ID="ExtComboBox2" runat="server" name="cbo1" triggerAction="All"
                        fieldLabel="Combo" valueField="value" value="1" displayField="text" mode="Local">
                            <simpleStore>
                                <fields>
                                    <mvc:ExtRecord name="value" />
                                    <mvc:ExtRecord name="text" />
                                </fields>
                                <data>
                                    [['1', 'Test 1'],['2', 'Test 2']]
                                </data>
                            </simpleStore>
                    </mvc:ExtComboBox>          
                    <mvc:ExtCheckBox ID="check1" runat="server" name="check1" fieldLabel="Check box" Checked="true"></mvc:ExtCheckBox> 
                    <mvc:ExtDateField ID="dtF" name="Date" fieldLabel="Date" format="d.m.Y" value="16.05.1981" runat="server"></mvc:ExtDateField>
                    <mvc:ExtNumberField ID="numF" name="numField" fieldLabel="Number" value="222" runat="server"></mvc:ExtNumberField>                                                                                         
                </items>                
                <buttons>
                    <mvc:ExtButton text="Submit" type="Submit" ID="btn1" runat="server"></mvc:ExtButton>
                </buttons>
            </mvc:ExtFormPanel>
        </items>
    </mvc:ExtWindow>
    <mvc:ExtOnReady ID="windowOnReady" runat="server">
        <script>
            extWindow.show();
        </script>
    </mvc:ExtOnReady>
</asp:Content>
